import request from '@/utils/request'
import qs from 'qs'

// /activity/page
export const activityPage = params => {
  return request({
    url: '/activity/page?' + qs.stringify(params),
    method: 'POST'
  })
}

//  新增 & 修改 /activity/save
export const saveActivity = data => {
  return request({
    url: '/activity/save',
    method: 'POST',
    data
  })
}

// 删除 /activity/delete
export const deleteActivity = params => {
  return request({
    url: '/activity/delete?' + qs.stringify(params),
    method: 'POST'
  })
}

// 审核 /activity/audit
export const auditActivity = params => {
  return request({
    url: '/activity/audit?' + qs.stringify(params),
    method: 'POST'
  })
}
